/**
 * 基本页面类，所有页面继承此类
 */
var util = require('../utils/util.js');
var common = require('../utils/common.js');
var ajax = require('../utils/ajax.js');
var Copyright = require('../components/copyright/index.js');
var app = getApp();

module.exports = {

	onLoad(options) {
		var {
			recommend
		} = options;

		recommend && app.setRecommend(recommend);
		this._copyright = new Copyright({
			page: this
		});
	},

	//登陆成功后处理
	$loginSuc() {
		if (this._copyright) {
			this._copyright.init();
		}
	}
};